package org.jeecg.modules.flowermater.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 采后物资出库子表
 * @Author: jeecg-boot
 * @Date:   2022-07-13
 * @Version: V1.0
 */
@ApiModel(value="flower_material_out_main对象", description="采后物资出库主表")
@Data
@TableName("flower_material_out")
public class FlowerMaterialOut implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private String id;
	/**主表id*/
	@ApiModelProperty(value = "主表id")
	private String mainid;
	/**物资名称*/
	@Excel(name = "物资名称", width = 15)
	@ApiModelProperty(value = "物资名称")
	private String name;
	/**物资编码*/
	@Excel(name = "物资编码", width = 15)
	@ApiModelProperty(value = "物资编码")
	private String code;
	/**规格*/
	@Excel(name = "规格", width = 15)
	@ApiModelProperty(value = "规格")
	private String specs;
	/**型号*/
	@Excel(name = "型号", width = 15)
	@ApiModelProperty(value = "型号")
	private String modelname;

	/**入库单位*/
	@Excel(name = "入库单位", width = 15)
	@ApiModelProperty(value = "入库单位")
	@Dict(dicCode = "chm_unit" )
	private String unit;

	/**计量单位*/
	@Excel(name = "计量单位", width = 15)
	@ApiModelProperty(value = "计量单位")
	@Dict(dicCode = "chm_unitMeasure" )
	private String unitMeasure;
	/**数量*/
	@Excel(name = "数量", width = 15 , type = 4)
	@ApiModelProperty(value = "数量")
	private Double num;



	@Excel(name = "单价", width = 15 , type = 4)
	@ApiModelProperty(value = "单价")
	private java.math.BigDecimal price;

	@Excel(name = "总价", width = 15 , type = 4)
	@ApiModelProperty(value = "总价")
	private java.math.BigDecimal totalPrice;


	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
}
